x86: improve output resulting from sending '0' over serial
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 16 Jun 2009 12:57:18 +0000 (13:57 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 16 Jun 2009 12:57:18 +0000 (13:57 +0100)
commitcc0de53a903cd8399e6dce3c663545510c0c527a
tree505a728dbca91428adb0fb88438dfc4115012dfb
parent360f174b3da63282f239c4c6f2a3a07d2a0751d6
x86: improve output resulting from sending '0' over serial

While the original logic already implied that the kernel part of the
guest's address space is identical on all vCPU-s (i.e. for all guest
processes), it didn't fully leverage the potential here: As long as
the top page table currently active is owned by the subject domain
(currently only Dom0), the stack dump can be done without extra
effort.

For x86-64, additionally add page table traversal so that the stack
can be dumped in all cases (unless it's invalid or user space).

I left the 32-bit variant of do_page_walk() unimplemented for the
moment as I couldn't convince myself using map_domain_page() there is
a good idea, and didn't want to introduce new fixmap entries either.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/traps.c
xen/arch/x86/x86_32/mm.c
xen/arch/x86/x86_64/compat/traps.c
xen/arch/x86/x86_64/mm.c
xen/include/asm-x86/mm.h
xen/include/asm-x86/processor.h
xen/include/asm-x86/x86_64/uaccess.h